package com.ldc.service.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ldc.model.SysMenu;

import java.util.List;

/**
 * 功能说明
 *
 * @auther liudc
 * @since 2023/6/12
 */
public interface MenuService extends IService<SysMenu> {
    SysMenu findBy(LambdaQueryWrapper<SysMenu> queryWrapper);

    List<SysMenu> findListBy(LambdaQueryWrapper<SysMenu> queryWrapper);

    List<SysMenu> findListByMenuId(List<Long> menuIds);

    SysMenu findByMenuId(long menuId);

    int batchDeleteBy(LambdaQueryWrapper<SysMenu> queryWrapper);

    boolean batchAdd(List<SysMenu> sysMenus);

    int batchDeleteByMenuIds(List<Long> ids);
}
